package Year22_Month03.day03;

import java.util.Scanner;

public class Main2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while(sc.hasNext()) {
            String s = sc.nextLine();
            int res = 0;
            int changdu = length(s);
            int zimu = zimu(s);
            int shuzi = numberh(s);
            int fuhao = mychar(s);
            if(shuzi != 0 && zimu == 20 && fuhao != 0){
                res += 5;
            }else if (zimu != 0 && shuzi != 0 && fuhao != 0){
                res += 3;
            }else if(zimu != 0 && shuzi != 0){
                res += 2;
            }
            res += changdu + zimu + shuzi + fuhao;
            if(res >= 90){
                System.out.println("VERY_SECURE");
            }else if (res >= 80){
                System.out.println("SECURE");
            }else if(res >= 70){
                System.out.println("VERY_STRONG");
            }else if(res >= 60){
                System.out.println("STRONG");
            }else if(res >= 50){
                System.out.println("AVERAGE");
            }else if(res >= 25){
                System.out.println("WEAK");
            }else{
                System.out.println("VERY_WEAK");
            }
        }
    }
    //  密码长度
    public static int length(String s){
        if(s.length() <= 4){
            return 5;
        }else if(s.length() >= 8){
            return 25;
        }
        return 10;
    }

    //字母
    public static int zimu(String s){
        char[] arr = s.toCharArray();
        boolean xiao = false;
        boolean da = false;
        for (int i = 0; i < arr.length; i++) {
            if(arr[i] <= 'z' && arr[i] >= 'a'){
                xiao = true;
            }
            if(arr[i] <= 'Z' && arr[i] >= 'A'){
                da = true;
            }
        }
        if(xiao == true && da == true){
            return 20;
        }else if(xiao == false && da == false){
            return 0;
        }
        return 10;
    }

    //数字
    public static int numberh(String s){
        char[] arr = s.toCharArray();
        int count = 0;
        for (int i = 0; i < arr.length; i++) {
            if(arr[i] >= '0' && arr[i] <= '9'){
                count++;
            }
        }
        if(count == 0){
            return 0;
        }else if(count == 1){
            return 10;
        }
        return  20;
    }

    public static int mychar(String s){
        char[] arr = s.toCharArray();
        int count = 0;
        for (int i = 0; i < arr.length; i++) {
            if(arr[i] >= 0x21 && arr[i] <= 0x2F){
                count++;
            }
            if(arr[i] >= 0x3A && arr[i] <= 0x40){
                count++;
            }
            if(arr[i] >= 0x5B && arr[i] <= 0x60){
                count++;
            }
            if(arr[i] >= 0x7B && arr[i] <= 0x7E){
                count++;
            }
        }
        if(count == 0){
            return 0;
        }else if(count == 1){
            return 10;
        }
        return  25;
    }
}
